<?php
/**
 * Created by PhpStorm.
 * User: lidan
 * Date: 2018/8/28
 * Time: 下午2:41
 */

function C($key, $get_all = false, $config_key = null) {
    if(empty($config_key)) {
        $config_key = '__config';
    }
    return $get_all == false ? $GLOBALS[$config_key][$key] : $GLOBALS[$config_key];
}
